package com.heaven.customerServer.customerController.vo.uploadFile;

import lombok.Data;

@Data
public class BlobStartRes {
    /** 大文件是否存在 */
    private boolean isBigFileExist;

    /** 分块上传的第一个分块的索引（只要是除存在以外的情况下均返回 -1） */
    private long index;

    /** 桶 */
    private String bucketName;

    /** 文件在minio的位置 */
    private String objectName;

    public BlobStartRes(boolean isBigFileExist, long index) {
        this.isBigFileExist = isBigFileExist;
        this.index = index;
    }

    public BlobStartRes(boolean isBigFileExist, long index, String bucketName, String objectName) {
        this.isBigFileExist = isBigFileExist;
        this.index = index;
        this.bucketName = bucketName;
        this.objectName = objectName;
    }
}
